package com.zz.parkingsystem.service.impl;

import com.zz.parkingsystem.mapper.RefundMapper;
import com.zz.parkingsystem.service.RefundService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;

/**
 * @Auther: BAISIHANG
 * @Date: 2022/9/5 - 09 - 05 - 19:26
 * @Description: com.zz.parkingsystem.service.impl
 * @version: 1.0
 */
@Service
public class RefundServiceImpl implements RefundService {
    @Resource
    private RefundMapper refundMapper;
    @Override
    public int getselRefundSum() {
        return refundMapper.selRefundSum();
    }

    @Override
    public double getselMoneySum() {
        return refundMapper.selMoneySum();
    }

    @Override
    public int getSumNumberBytime(Date ref_time) {
        return refundMapper.SumNumberBytime(ref_time);
    }

    @Override
    public double getSumMoneyBytime(Date ref_time) {
        return refundMapper.SumMoneyBytime(ref_time);
    }
}
